package dq.study.aop;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


/**
 * @author dongqun
 * @date 2020/2/20 13:46
 */
public class Main {

    public static void main(String[] args){
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyAopConfig.class);
        Business business = (Business) context.getBean("business");
        business.method1();
        business.method2();
        business.method3();
    }
}
